<template>
	<view>
		<Sheader :title="this.$route.query.title || '支付'" :background="'#fff'" :color="'#203136'"/>
		<view class="content">
			<text class="title-view">
				提示：你需要付款20元
			</text>
			<text class="tips-view">
				该车辆识别代码可以查询，付款后即可显示车辆的详细信
				息，有问题加微信处理。
			</text>
			<view class="pay-btn wx-btn">
				<image src="../../static/wxPay.png" class="pay-img" mode="widthFix"></image>
				<text>微信支付</text>
				<text></text>
			</view>
			<view class="pay-btn ali-btn">
				<image src="../../static/aliPay.png" class="pay-img" mode="widthFix"></image>
				<text>支付宝支付</text>
				<text></text>
			</view>
		</view>
	</view>
</template>

<script>
	import Sheader from '@/components/Sheader/index.vue'
	export default {
		data() {
			return {
				showTip: false,
				title: '',
				content: '',
				form: {
					oldPassWord: '',
					newPwd: '',
					passWord2: ''
				}
			}
		},
		components: {
			Sheader
		},
		async onLoad(e) {
			console.log(e)
		},
		onUnload() {
		},
		methods: {
			async sendForm() {
				// const res = await this.$http.request('/user/modifyPwd', this.form, 'post', true, false).then((res) => {
				// 	if (!res.success) {
				// 		this.showTip = true
				// 		this.content = res.msg
				// 		return
				// 	}
				// 	this.title = '修改密码成功'
				// 	this.content = res.msg
				// 	this.showTip = true
				// })
			},
			confirm() {
				if (this.title == '修改密码成功') {
					uni.reLaunch({
						url: '/pages/user/index'
					});
				}
			}
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		background: #fff;
		padding-top: 90rpx;
		height: 100vh;
	}
	.title-view {
		padding-top: 6vh;
		text-align: center;
		font-size: 32rpx;
		font-family: PingFang SC;
		font-weight: bold;
		line-height: 44rpx;
		color: #303133;	
			margin-bottom: 16rpx;
	}
	.tips-view {
		margin-bottom: 40rpx;
		width: 88vw;
		font-size: 26rpx;
		font-family: PingFang SC;
		font-weight: 500;
		line-height: 36rpx;
		color: #909399;
		opacity: 0.8;
		text-align: left;
	}
	.pay-btn {
		width: 88vw;
		height: 88rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 20rpx;
		font-size: 32rpx;
		font-family: PingFang SC;
		font-weight: bold;
		color: #FFFFFF;		
		border-radius: 8rpx;
		box-sizing: border-box;
		padding: 0 20rpx;
	}
	.wx-btn {
		background: #40BA49;
	}
	.ali-btn {
		background: #009EF2;
	}
	.pay-img {
		width: 44rpx;
		height: 44rpx;
	}
</style>
